const getType = function (obj: any) {
  let type = typeof obj
  if (type !== 'object') {
    return type
  }
  return Object.prototype.toString
    .call(obj)
    .replace(/^\[object (\S+)\]$/, '$1')
    .toLowerCase()
}

export {
  getType
}